package com.aifund.admin.service.impl;

import com.aifund.admin.entity.vo.home.HomeDataVo;
import com.aifund.admin.service.HomeService;
import com.aifund.admin.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author deng
 */
@Service
public class HomeServiceImpl implements HomeService {
    @Autowired
    UserService userService;

    @Override
    public HomeDataVo getHomeData() {
        HomeDataVo hv = new HomeDataVo();

        //今日注册人数
        int todayRegister = userService.getTodayRegister();
        hv.setTodayRegister(todayRegister);

        return hv;
    }
}
